package day240602;

import java.util.*;

public class CollectionCommonMethod4 {
    public static void main(String[] args) {
        List<String> list1 = new LinkedList<>();
        list1.add("123");
        list1.add("abc");
        list1.add("qwe");
        System.out.println(list1);
        Collections.reverse(list1);
        System.out.println(list1);
        //System.out.println(list1.stream());
        //Arrays.sort(...);
        // MySortUtil
        Collections.shuffle(list1);
        System.out.println(list1);

        System.out.println("=== === ===");


        ArrayList<String> list2 = new ArrayList<>();
        list2.add("uio");
        list2.add("bnm");

        list1.addAll(list2);
        System.out.println(list1);

        System.out.println(list1.containsAll(list2));
    }
}
